package com.gpj.learn.springcloud.ribbon.loadbalanced.config;

import com.gpj.learn.springcloud.ribbon.loadbalanced.annotations.CustomLoadBalanced;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @className RibbonConfig
 * @description
 *   TODO
 * @author GPJ
 * @date 2021/9/27 16:45
 * @version 1.0
 **/
@Configuration
public class RibbonConfig {
	@Bean
	@CustomLoadBalanced
	public RestTemplate restTemplate(){
	    return new RestTemplate();
	}
}
